package com.javaIO.chapter3;

import java.io.IOException;

public class InputSteamDemo {

    public static void main(String[] args) {

        int[] data = new int[10];
        for (int i = 0; i < data.length; i++) {
            try {
                data[i] = System.in.read();
                System.out.println(data[i]);
                System.out.println((char)data[i]);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }




    }



}
